package com.tygz.service;

import java.util.List;
import java.util.Map;

import org.springframework.web.multipart.MultipartFile;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.auto.base.pojo.GeneralUser;
import com.auto.base.pojo.Post;
import com.auto.base.pojo.PostFocus;
import com.base.util.Page;

public interface ApiUserService {

	public void login(Map<String,Object> map,GeneralUser user) throws Exception;

	public void addCache(Map<String,Object> map,GeneralUser user) throws Exception;

	public GeneralUser getUserById(int userId) throws Exception;

	public GeneralUser updateUserInfo(GeneralUser user) throws Exception;

	public void doPush(Post post,String fileIds) throws Exception;

	public JSONArray upload(MultipartFile[] uploadFiles,int type) throws Exception;

	public int doAgree(PostFocus postFocus) throws Exception;
	
	public GeneralUser weixinLogin(String openId,String token) throws Exception;
	
	public JSONObject obtainAgreeList(int postId,Page page) throws Exception; 

}
